<?php
/**
 * Created by PhpStorm.
 * User: Mak
 * Date: 2016/1/4
 * Time: 21:06
 */

namespace Home\Controller;

use Think\Controller;

class HomeController extends Controller{

    public function _initialize(){
        header("content-type:text/html; charset=utf-8");
        $flag = session('?dataInfo');
        if(!$flag){
            $this->error("非法登录",U('Home/Index/index'));
        }

    }

    public function home(){


        $this->display();
}
}